package service

import (
	"context"
	pb "shop-demo/api/shop/admin/v1"
	"shop-demo/app/shop/admin/internal/biz"
)

func (s *ShopService) Logout(ctx context.Context, req *pb.LogoutReq) (*pb.LogoutReply, error) {
	err := s.uuc.Logout(ctx, &biz.User{
		Id: req.Uid,
	})
	if err != nil {
		return nil, err
	}
	return &pb.LogoutReply{}, nil
}

func (s *ShopService) ListUser(ctx context.Context, req *pb.ListUserReq) (*pb.ListUserReply, error) {
	return &pb.ListUserReply{}, nil
}
func (s *ShopService) GetUser(ctx context.Context, req *pb.GetUserReq) (*pb.GetUserReply, error) {
	return &pb.GetUserReply{}, nil
}
